aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTe.../[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snap...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-25 14:45:46 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-25 14:45:57 +0100
commit60270ec2c59b803804d67dd94ceea12b8857e4d7 (patch)
tree21029384b64cbb9102bf220898907092a82a9ef1 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parenta4d0595b70aab0cc71a6f4721654a961190f5180 (diff)
Add datasegments to WASM binary format
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected22
1 files changed, 22 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..13654007
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,22 @@
+
+module.wasm: file format wasm 0x1
+
+Section Details:
+
+Memory[1]:
+ - memory[0] pages: initial=10
+Data[2]:
+ - segment[0] <.data> memory=0 size=4 - init i32=0
+ - 0000000: 0102 0304 ....
+ - segment[1] <.rodata> memory=0 size=4 - init i32=4
+ - 0000004: 0405 0607 ....
+Custom:
+ - name: "name"
+Custom:
+ - name: "linking"
+ - segment info [count=2]
+ - 0: .data p2align=2 [ ]
+ - 1: .rodata p2align=0 [ ]
+ - symbol table [count=0]
+
+Code Disassembly: